In KML/Realtime mode, pull track out of folder and up one level as we know
authorrobertl <robertl>
Tue, 31 Oct 2006 18:10:54 +0000 (18:10 +0000)
committerrobertl <robertl>
Tue, 31 Oct 2006 18:10:54 +0000 (18:10 +0000)
we'll have only one track.

kml.c

diff --git a/kml.c b/kml.c
index a3851342ca8f46500cbeeb03360e1f3da06c8975..5b8099337fd5cd66a81de9a5a0aa2b1dc3738be9 100644 (file)
--- a/kml.c
+++ b/kml.c
@@ -484,7 +484,9 @@ void kml_output_trkdescription(const route_head *header, computed_trkdata *td)
 static 
 void kml_output_header(const route_head *header, computed_trkdata*td)
 {
-       kml_write_xml(1,  "<Folder>\n");
+       if (!realtime_positioning)  {
+               kml_write_xml(1,  "<Folder>\n");
+       }
        kml_write_xmle("name", header->rte_name);
        kml_output_trkdescription(header, td);
 
@@ -618,7 +620,9 @@ static void kml_output_tailer(const route_head *header)
   xfree(point3d_list);
   point3d_list = NULL;
   
-  kml_write_xml(-1, "</Folder>\n");
+  if (!realtime_positioning)  {
+    kml_write_xml(-1, "</Folder>\n");
+  }
 }
 
 static